import type { ProfileDetail, ProfileParams } from "@/types/member"
import { getAction, putAction } from "@/utils/http"

export const getMemberProfile = ()=>{
        return getAction<ProfileDetail>({
                url: '/member/profile'
        })
}

export const saveProfileMessageApi = (data: ProfileParams)=>{
        return putAction<ProfileDetail>({
                url: '/member/profile',
                data
        })
}